package com.yachang.qym.usbhost.utils;

import android.content.Intent;
import android.graphics.Bitmap;

import com.yachang.qym.usbhost.UsbApplication;
import com.yachang.qym.usbhost.model.AreaModel;
import com.yachang.qym.usbhost.model.CallHelpModel;
import com.yachang.qym.usbhost.model.CalledModel;
import com.yachang.qym.usbhost.model.ContactModel;
import com.yachang.qym.usbhost.model.FirePointModel;
import com.yachang.qym.usbhost.model.HelpModel;
import com.yachang.qym.usbhost.model.MachineInfoModel;
import com.yachang.qym.usbhost.model.MakerModel;
import com.yachang.qym.usbhost.model.OutPoliceModel;
import com.yachang.qym.usbhost.model.RouteModel;
import com.yachang.qym.usbhost.model.UserModel;
import com.yachang.qym.usbhost.service.GetDataService;
import com.yachang.qym.usbhost.service.LocationService;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by qinyuanmao on 16/1/17.
 */
public class AllData {
    public static boolean isFirst = true;
    public static List<ContactModel> contactModels = new ArrayList<>();
    public static List<RouteModel> routeModels = new ArrayList<>();
    public static List<CalledModel> calledModels = new ArrayList<>();
    public static List<AreaModel> areaModels = new ArrayList<>();
    public static int nowRoute = -1;
    public static boolean nowRouteNeedChange = false;
    public static MachineInfoModel machineInfo = new MachineInfoModel();
    public static HelpModel helpModel = new HelpModel();
    public static double helpDistance = -999;
    public static String machineId = "123";
    public static int voice = 0;
    public static boolean isInPolice = false;

    public static UserModel userModel;
    public static boolean isLogin = false;
    public static boolean needHelp = false;

    public static Intent locationIntent = new Intent(UsbApplication.getContext(), LocationService.class);
    public static Intent usbIntent = new Intent(UsbApplication.getContext(), GetDataService.class);

    public static String outPolice_id = "";
    public static CallHelpModel callHelpModel = new CallHelpModel();
    public static CallHelpModel myCallHelpModel = new CallHelpModel();
    public static List<OutPoliceModel> outPoliceModels = new ArrayList<>();

    public static Map<String ,Bitmap> userBitmap = new HashMap<>();

    public static double LAST_HIGH = 0;
    public static double LAST_TEMP = 0;
    public static boolean isToHelp = false;
    public static boolean isFirstLoad = true;
    public static String callHelpId = "0";

    public static List<FirePointModel> firePointModels = new ArrayList<>();

    public static boolean isNetLogin = true;

    public static boolean isLoaddingFinish = false;

    public static double FIRST_HIGH;
    public static double VECTOR_HIGH = 0;
    public static float FLOOR_HIGH = (float) 2.8;
    public static int FIRST_FLOOR = 1;
}
